package com.zzh.student.manager;

import com.zzh.ssi.frame.base.BaseDao;
import com.zzh.ssi.frame.util.PageInfo;
import com.zzh.student.dao.StudentDao;
import com.zzh.student.dt.StudentDt;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * Date: 13-1-10
 * Time: 下午4:18
 * To change this template use File | Settings | File Templates.
 */
public class StudentManagerImpl {
    private StudentDao dao;


    public int add(StudentDt dt) throws Exception {
        return dao.add(dt);
    }

    public int addByTran(StudentDt dt, StudentDt dt2) throws Exception {
        dao.add(dt);
        return dao.add(dt2);
    }

    public List query(StudentDt dt, PageInfo pageInfo) throws Exception {
        return dao.query(dt, pageInfo);
    }


    public int delete(StudentDt dt) throws Exception {
         return dao.delete(dt);
     }

     public int update(StudentDt dt) throws Exception {
         return dao.update(dt);
     }

     public StudentDt queryById(StudentDt dt) throws Exception {
         return dao.queryById(dt);
     }
    public StudentDao getDao() {
        return dao;
    }

    public void setDao(StudentDao dao) {
        this.dao = dao;
    }
}
